﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using PesticideManage.API.Services.Files;
using PesticideManage.Domain.AggregatesModel.BatchQRCodeAggregate;
using Shang.Sms;
using System.Text.Json.Nodes;

namespace PesticideManage.API.Controllers;
[Route("api/[controller]")]
[ApiController]
[AllowAnonymous]
public class AController : ControllerBase
{
    private readonly IHttpContextAccessor _httpContextAccessor;
    private readonly TencentCosService _storeService;

    public AController(
        IHttpContextAccessor httpContextAccessor,TencentCosService storeService)
    {
        _httpContextAccessor = httpContextAccessor;
        _storeService = storeService;
    }

    [HttpGet]
    public IActionResult  Get(string? filename,string? userName)
    {
       // return _storeService.GetFile(filename, userName);
       return Ok(new { filename, userName });
    }
}
